#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <string>
using namespace std;

int main()
{
	string s1;
	char ch = 'A';
	int i = 0;
	for (i = ch; i <= 'E'; i++)
	{
		if (i % 2 == 0)
		{
			s1.push_back(i + 32);
		}
		else
			s1.push_back(i);
	}
	cout << s1<<endl;


	for (i = 0; i < s1.size(); i++)
	{
		if (s1[i] >= 'A' && s1[i] <= 'Z')
			s1.erase(i,1);
	}
	cout << s1<<endl;
	return 0;
}